<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8" />
    <title>index</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link rel="stylesheet" href="/static/sdk/sdk.css" />
    <link rel="stylesheet" href="/static/sdk/helper.css" />
    <style>
        html,
        body,
        .app-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }
    </style>
</head>

<body>
    <div id="root" class="app-wrapper"></div>
    <script src="/static/sdk/sdk.js"></script>
    <script type="text/javascript">
        (function () {
            let amis = amisRequire('amis/embed');
            let amisJSON = {
                "type": "page",
                "title": "标题",
                "remark": {
                    "title": "标题",
                    "body": "这是一段描述问题，注意到了没，还可以设置标题。而且只有点击了才弹出来。",
                    "icon": "question-mark",
                    "placement": "right",
                    "trigger": "click",
                    "rootClose": true
                },
                "body": "内容部分. 可以使用 \\${var} 获取变量。如: `\\$date`: ${date}",
                "aside": "边栏部分",
                "toolbar": "工具栏",
                "initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData"
            };
            let amisScoped = amis.embed('#root', amisJSON);
        })();
    </script>
</body>

</html>